<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'rentalproperty-form',
	'enableAjaxValidation'=>false,
	'stateful'=>true, 
	'htmlOptions'=>array('enctype' => 'multipart/form-data')
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
    	<?php echo $form->labelEx($model,'Mangement Name'); ?>
    	<?php echo $form->dropDownList($model,'idManagement', CHtml::listData(Landlord::model()->findAll(), 'id', 'CompanyName'), array('prompt'=>'Choose Company')); ?>
		
		<?php //echo $form->textField($model,'idManagement'); ?>
		<?php //echo $form->error($model,'idManagement'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AddressOne'); ?>
		<?php echo $form-> textField($model,'AddressOne',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'AddressOne'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'AddressTwo'); ?>
		<?php echo $form->textField($model,'AddressTwo',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'AddressTwo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'City'); ?>
		<?php echo $form->textField($model,'City',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'City'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'State'); ?>
		<?php echo $form->textField($model,'State',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'State'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ZipCode'); ?>
		<?php echo $form->textField($model,'ZipCode',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'ZipCode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SoftwareCode'); ?>
		<?php echo $form->textField($model,'SoftwareCode',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'SoftwareCode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'EmailAddress'); ?>
		<?php echo $form->textField($model,'EmailAddress',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'EmailAddress'); ?>
	</div>

	<!--<div class="row">
		<?php //echo $form->labelEx($model,'ActiveManager'); ?>
		<?php //echo $form->textField($model,'ActiveManager'); ?>
		<?php //echo $form->error($model,'ActiveManager'); ?>
	</div>-->

	<div class="row">
		<?php echo $form->labelEx($model,'PhoneNumber'); ?>
		<?php echo $form->textField($model,'PhoneNumber',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'PhoneNumber'); ?>
	</div>

<!--	<div class="row">
		<?php //echo $form->labelEx($model,'NumberOfUnits'); ?>
		<?php //echo $form->textField($model,'NumberOfUnits'); ?>
		<?php //echo $form->error($model,'NumberOfUnits'); ?>
	</div>-->

	<div class="row">
		<?php echo $form->labelEx($model,'ApplicationDocument'); ?>
		<?php echo $form->fileField($model,'ApplicationDocument',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo $form->error($model,'ApplicationDocument'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RulesGracePeriod'); ?>
		<?php echo $form->textField($model,'RulesGracePeriod'); ?>
		<?php echo $form->error($model,'RulesGracePeriod'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LateFee'); ?>
		<?php echo $form->textField($model,'LateFee'); ?>
		<?php echo $form->error($model,'LateFee'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LateFeeFrequency'); ?>
		<?php echo $form->textField($model,'LateFeeFrequency'); ?>
		<?php echo $form->error($model,'LateFeeFrequency'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NameOfDevelopement'); ?>
		<?php echo $form->textField($model,'NameOfDevelopement',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'NameOfDevelopement'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->